module.exports =  class Result{

    static ok(data,message){
        let res = {
            code: 20000,
            data: data||[],
            message: message || "查询成功"
        }
        return res;
    }

    static error(data,message){
        let res = {
            code: 50000,
            data: data||[],
            message: message || "查询成功"
        }
        return res;
    }
}

